package com.yq.day74.daili.jingtai;

/**
 * @author 3307235355@qq.com
 * @description
 * @since 2022/07/04 16:19
 */

//静态代理 通过成员变量的方式
//代理类

public class ChangFeng implements BuyFood{
    JingTian delegate = new JingTian();
    @Override
    public void buyBreakFast() {
        //
        System.out.println("鸡蛋");
        System.out.println("奶茶");
        delegate.buyBreakFast();
    }
}
